#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"


void test()
{
	LNode* list = LNInit();
	LNPushBack(list, 1);
	LNPushFront(list, 2); 
	LNPushFront(list, 3); 
	LNPushFront(list, 4); 
	LNPopFront(list);
	LNPopBack(list);
	LNode* ret = LNFind(list, 3);
	LNInsert(ret, 4);
	LNErase(ret);
	LNPrint(list);//4->2->

	LNDestroy(list);
	free(list);
	list = NULL;
}

int main()
{
	test();
	return 0;
}
